package jie.mapper;

import jie.pojo.Account;
import jie.pojo.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface InfoMapper {


    Account login(@Param("cardNo") String cardno);

    int updateBalance(@Param("cardNo")String cardNo,
                      @Param("balance") double balance);

    int addRecord(Record record);

    List<Record> getAllRecord(@Param("start")String start,
                              @Param("end")String end,
                              @Param("cardNo") String cardNo,
                              @Param("pageNo") int pageNo,
                              @Param("pageSize")int pageSize);
    int getCount(@Param("start")String start,
                 @Param("end")String end,
                 @Param("cardNo") String cardNo);

    int updatePwd(@Param("cardNo")String cardNo,@Param("password") String password);
}
